package com.pingba.serviceImpl.location;

import com.pingba.dao.BaseDao;
import com.pingba.dao.location.CityDao;
import com.pingba.entity.location.City;
import com.pingba.entity.location.Province;
import com.pingba.service.location.CityService;
import com.pingba.serviceImpl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2015/12/23 0023.
 */
@Service("cityService")
public class CityServiceImpl extends BaseServiceImpl<City, Long> implements CityService {

    @Autowired
    private CityDao cityDao;
    @Override
    public BaseDao<City, Long> getDao() {
        return cityDao;
    }

    @Override
    public List<City> getCityOfProvince(Province province) {
        return cityDao.getCityOfProvince(province);
    }
}
